import axios from '~/plugins/axios';

import * as types from '../../mutation-types/seller/index';

export const getsellerlist = function({commit, state}, preload) {
    return axios.post(process.env.baseUrl + '/agency/getList', preload || {})
};

export const deleteAgencys = function({commit, state}, preload) {
    return axios.post(process.env.baseUrl + '/agency/deleteAgencys', preload || {})
};

export const addAgency = function({commit, state}, preload) {
    return axios.post(process.env.baseUrl + '/agency/addAgency', preload || {})
};

export const checkAgencyName = function({commit, state}, preload) {
    return axios.post(process.env.baseUrl + '/agency/checkAgencyName', preload || {})
};

export const importAgency = function({commit, state}, preload) {
    return axios.post(process.env.baseUrl + '/agency/importAgency', preload || {})
};